package cn.lsnu.utils;


public class Global {

    /**
     * @Description  是/否
     */
    public static final Integer YES = 1;
    public static final Integer NO = 0;

    /**
     *@Description 性别未知 2 男性 1  女性 0
     */
    public static final Integer NOMAN = 2;
    public static final Integer MAN = 1;
    public static final Integer WOMAN = 0;

    public static final  Integer HTTP_SUCEESS = 200;

    //未知错误
    public static final Integer UNKNOWN_ERROR = 100;

    //验证登录
    public static final Integer LOGIN_SUCEESS = 101;
    public static final Integer LOGIN_USER_NO_EXISTENCE = 102;
    public static final Integer LOGIN_PASSWARD_ERROR = 103;
    public static final Integer LOGIN_DATABASE_ERROR = 104;
    public static final Integer LOGIN_USER_NO_AUTHORIZATION = 105;

    //验证码
    public static final Integer VALIDATECODE_WIDTH = 80; //图片默认高度
    public static final Integer VALIDATECODE_HEIGHT = 26; //图片默认宽度
    public static final Integer VALIDATECODE_LINESIZE = 40; //默认干扰线
    public static final Integer VALIDATECODE_STRINGNUM = 4; //随机产生的字符个数
    public static final Integer VALIDATECODE_FONTSIZE = 30;//设置字体大小

    public static final String RANDOMCODEKEY = "randomcode_key";//放入session中key
    public static final String SESSION_ID="session_id";//放入session中的session_id
    public static final String LOGIN_SUCCESS_STRING="success"; //登录验证成功


    public static final String STATUE_SUCCESS = "200"; //状态码请求成功
    public static final String STATUE_FAIL = "-1"; //请求失败


}
